//
//  CalculatorViewController.m
//  Waiguofang
//
//  Created by waiguofang on 15/4/28.
//
//

#import "CalculatorViewController.h"
#import "CalculatorTableViewController.h"
#import "config.h"
@interface CalculatorViewController ()

@end

@implementation CalculatorViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
     [self initNavBar];
    
    CalculatorTableViewController *mainTC = [[CalculatorTableViewController alloc] init];
     mainTC.housePrice = self.housePrice;
    [mainTC.view setFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height)];
   
    
    [self addChildViewController:mainTC];
    [self.view addSubview:mainTC.view];
    [self didMoveToParentViewController:self];
}

- (void)initNavBar {
    
    [self.titleView setMianTitle:@"房贷计算器"];
    self.titleView.doneBtn.hidden = YES;
}


- (void)leftBarButtonAction:(id)sender
{
    [self.navigationController popViewControllerAnimated:YES];
}
@end
